﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="GrupoDataSet" targetNamespace="http://tempuri.org/GrupoDataSet.xsd" xmlns:mstns="http://tempuri.org/GrupoDataSet.xsd" xmlns="http://tempuri.org/GrupoDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections />
        <Tables />
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="GrupoDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="GrupoDataSet" msprop:Generator_DataSetName="GrupoDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Grupo" msprop:Generator_UserTableName="Grupo" msprop:Generator_RowDeletedName="GrupoRowDeleted" msprop:Generator_RowChangedName="GrupoRowChanged" msprop:Generator_RowClassName="GrupoRow" msprop:Generator_RowChangingName="GrupoRowChanging" msprop:Generator_RowEvArgName="GrupoRowChangeEvent" msprop:Generator_RowEvHandlerName="GrupoRowChangeEventHandler" msprop:Generator_TableClassName="GrupoDataTable" msprop:Generator_TableVarName="tableGrupo" msprop:Generator_RowDeletingName="GrupoRowDeleting" msprop:Generator_TablePropName="Grupo">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msprop:Generator_UserColumnName="Id" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInTable="IdColumn" type="xs:long" />
              <xs:element name="Nome" msprop:Generator_UserColumnName="Nome" msprop:Generator_ColumnPropNameInRow="Nome" msprop:Generator_ColumnVarNameInTable="columnNome" msprop:Generator_ColumnPropNameInTable="NomeColumn" type="xs:string" minOccurs="0" />
              <xs:element name="Descricao" msprop:Generator_UserColumnName="Descricao" msprop:Generator_ColumnVarNameInTable="columnDescricao" msprop:Generator_ColumnPropNameInRow="Descricao" msprop:Generator_ColumnPropNameInTable="DescricaoColumn" type="xs:string" minOccurs="0" />
              <xs:element name="NumeroContactos" msprop:Generator_UserColumnName="NumeroContactos" msprop:Generator_ColumnPropNameInRow="NumeroContactos" msprop:Generator_ColumnVarNameInTable="columnNumeroContactos" msprop:Generator_ColumnPropNameInTable="NumeroContactosColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Contacto" msprop:Generator_UserTableName="Contacto" msprop:Generator_RowDeletedName="ContactoRowDeleted" msprop:Generator_RowChangedName="ContactoRowChanged" msprop:Generator_RowClassName="ContactoRow" msprop:Generator_RowChangingName="ContactoRowChanging" msprop:Generator_RowEvArgName="ContactoRowChangeEvent" msprop:Generator_RowEvHandlerName="ContactoRowChangeEventHandler" msprop:Generator_TableClassName="ContactoDataTable" msprop:Generator_TableVarName="tableContacto" msprop:Generator_RowDeletingName="ContactoRowDeleting" msprop:Generator_TablePropName="Contacto">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="IdGrupo" msprop:Generator_UserColumnName="IdGrupo" msprop:Generator_ColumnPropNameInRow="IdGrupo" msprop:Generator_ColumnVarNameInTable="columnIdGrupo" msprop:Generator_ColumnPropNameInTable="IdGrupoColumn" type="xs:long" />
              <xs:element name="IdContacto" msprop:Generator_UserColumnName="IdContacto" msprop:Generator_ColumnPropNameInRow="IdContacto" msprop:Generator_ColumnVarNameInTable="columnIdContacto" msprop:Generator_ColumnPropNameInTable="IdContactoColumn" type="xs:long" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Grupo" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
    <xs:unique name="Contacto_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Contacto" />
      <xs:field xpath="mstns:IdGrupo" />
      <xs:field xpath="mstns:IdContacto" />
    </xs:unique>
    <xs:keyref name="FK_Grupo_Contacto" refer="Constraint1" msprop:rel_Generator_UserRelationName="FK_Grupo_Contacto" msprop:rel_Generator_RelationVarName="relationFK_Grupo_Contacto" msprop:rel_Generator_UserChildTable="Contacto" msprop:rel_Generator_UserParentTable="Grupo" msprop:rel_Generator_ParentPropName="GrupoRow" msprop:rel_Generator_ChildPropName="GetContactoRows">
      <xs:selector xpath=".//mstns:Contacto" />
      <xs:field xpath="mstns:IdGrupo" />
    </xs:keyref>
  </xs:element>
</xs:schema>